@extends('base')
@section('content')
    <div class="banner">
        <div class="ny_img">
            <img src="/images/ny_banner7.jpg">
        </div>
    </div>
    <!--友情链接-->

    <div class="container1200">
        <h2 class="h-h2">政策法规</h2>
        <p class="m-sm xx">资源集中整合，政策协同支撑</p>
        <p class="mt20">
            <a href="/policy/index"   class="{{"" === $type ? "cedao_hover" : ""}} btn-center animate">全部</a>
            <a href="/policy/index/0" class="{{"0" === $type ? "cedao_hover" : ""}} btn-center animate">政策法规</a>
            <a href="/policy/index/1" class="{{"1" === $type ? "cedao_hover" : ""}} btn-center animate">优惠政策</a>
            <a href="/policy/index/2" class="{{"2" === $type ? "cedao_hover" : ""}} btn-center animate">最新政策</a>
        </p>
        <div class="news_List fullList">
            <ul id="newsRay">
                @foreach($policies as $policiyItem)
                    <li>
                        <a href="{{url('/policy/detail/'.$policiyItem->id)}}">
                            <div class="newsListContent">
                                <div class="date"><strong></strong>
                                    <p>{{date('Y-m-d',strtotime($policiyItem->created_at))}}</p><span></span></div>
                                <div class="box">
                                    <div class="title">{{$policiyItem->name}}</div>
                                    <div class="des">
                                        {!! json_decode($policiyItem->content)->content !!}
                                    </div>
                                </div>
                            </div>
                        </a>
                    </li>
                @endforeach
            </ul>
        </div>
    </div>
@stop